import Base64 from "Utils/base64.js";
var https = "http://192.168.11.229:622/app-api";
//var https = "https://www.gxjiean.com/app-api";
 //var https=  "https://www.gxtrwy.cn/app-api";
//var https = "https://www.gxtrwy.cn/app-api";
//var LoginTK = window.localStorage.getItem('LoginTK');
 // var https = "http://127.0.0.1:48080/app-api"; oGxeM5bP-PprO9X4FsT7I1VrQE2s
//var https = "https://32r29y9489.picp.vip/app-api";

let httparr = {};

function LoginTKDES() {
	uni.getStorage({ 
	    key: 'LoginTK',
	    success:  res=>{
	           httparr["LoginTK"] = res.data
			   
	    }
	})
 }
//DES3加密$2a$10$mRMIYLDtRHlf6.9ipiqH1.Z.bh/R9dO9d5iHiGYPigi6r5KOoR2Wm  $2a$04$YaEpjkUs0IHPjwiUFovp0.HglXkqrFakdR1JcZ/PrMaWBhqrsBuUq
import DES3 from "Utils/DES3.js";
function DES_Login(mis) {
	LoginTKDES()
	return DES3.des_encrypt(mis) ;
}
function DES_encrypt(mi) {
	LoginTKDES()
	httparr["mi"] = DES3.des_encrypt(mi) 
	return httparr;
}
function DES_encrypPage(mi,pageBean) {
	LoginTKDES()
	httparr["pageBean"] = pageBean
	httparr["mi"] = DES3.des_encrypt(mi) 
	return httparr;
}
//DES3 不加密mi参数
 function DES_encryptmi(mi) {
	LoginTKDES()
 	httparr["mi"] = mi 
 	return httparr;
} 
var httpsLian = {
	Login: https + "/homemaking/technician/auth/login", //登录
	orderDispatchRecord: https + "/homemaking/order-dispatch-record/page2", //获取派单记录
	orderDispatchRecordUpdateStatus: https + "/homemaking/order-dispatch-record/updateStatus", //修改派单状态
	homemakingOrder: https + "/homemaking/App/order/page", //获取家政订单信息。
	getTime: https + "/homemaking/App/order/gettime", //获取家政订单信息。
	homemakingOrderGetId: https + "/homemaking/App/order/get", //获得家政服务订单（单条）。
	homemakingOrderSubmitFinalPrice: https + "/homemaking/App/order/submitFinalPrice", //家政服务提交尾款。
	getTechnician: https + "/homemaking/app/technician/get",//获取技师信息
	getCategoryList: https + "/product/category/typelist",//获取全部家政类型，
	updatePassword:https +"/homemaking/app/technician/update-password",//修改密码
	getTechnicianMoneyRecord1: https + "/homemaking/app/technician-money-record/page",//获得技师出入账记录分页
	getTechnicianMoneyRecord3: https + "/homemaking/app/technician-money-record/page3",//获得技师出入账记录分页
	getTechnicianWithdrawal:https +"/homemaking/App/technician-withdrawal/page", //查询技师提现记录
	TechnicianWithdrawalApplyWithdrawal:https +"/homemaking/App/technician-withdrawal/applyWithdrawal", //技师提现
	upload:https + "/homemaking/App/order/upload",
	SumTimePrice:https + "/homemaking/order-dispatch-record/SumTimePrice",//根据时间段计算收入
	WebSocketGet:https + "/homemaking/app/WebSocketController/h1",//根据时间段计算收入
	WebSocketConnect:"wss://www.gxjiean.com/websocket/message",//连接WebSocket
	selNotice:https+"/homemaking/technician/auth/SelNotice",  //查询通知状态
	qrCodeStudentLoginBack:https+"/homemaking/technician/auth/getCode",  //开启通知  
	updateNotice:https+"/homemaking/technician/auth/UpdateNotice",  //关闭通知
	appid:"wxfe50a050f8233773",
	homemakingtypelist:https+"/product/category/typelist",//查询家政类型。
	managementlist:https+"/homemaking/management/list",//查询家政服务名称。
	homemakingCreate:https+"/homemaking/App/order/technicianCreate",//预约下单服务
	technicianCreateElderly:https+"/homemaking/App/order/technicianCreateElderly",//预约下单服务，创建家政服务订单,并且直接接单（
	homemakingsubOrder:https+"/homemaking/App/order/subOrder",//添加派单记录,
	homemakingProjectElderly:https+"/homemaking/App/projectElderly/listQuer",//查询服务的长者老人,
	homemakingAppOrderUpdate:https+"/homemaking/App/order/updateOrderApp",//更新家政订单 开始服务，完成服务使用,
	homemakingAppOrderUpdateFUZ:https+"/homemaking/App/order/update",//更新家政订单 上传服务中照片使用,
}
module.exports = {
 	 httpsLian:httpsLian,
	 DES_Login:DES_Login,
	 DES_encrypt:DES_encrypt,
	 DES_encryptmi:DES_encryptmi,
	 DES_encrypPage:DES_encrypPage,
	 https:https
	
}
 